|
|
>Further, you define some functions in the class and then again outside, for
>example VCross.
This is intentional. It is for convenience, when you want the result
of VCross or VTransform to be stored in the same vector.
>Also, I would strongly recommend to normalise vectors only when necessary.
I will look into this. So far I only want to make it work :)
>sqrt is not only slow, but if you scale the vector a lot this way (you do so
>for nearly every vector operation) the error will build up and might be
>significant in the end.
Point taken.
>At least you should make Update an inline function
>to not waste more time on yet another function call.
This is up to the compiler, I guess. I will do some performance tests
when I fix them nasty bugs.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|